package com.oop9.car;

public class Car {
	private String carName;
	private String carColor;
	private String carNum;

	public String getCarName() {
		return carName;
	}

	public void setCarName(String carName) {
		this.carName = carName;
	}

	public String getCarColor() {
		return carColor;
	}

	public void setCarColor(String carColor) {
		this.carColor = carColor;
	}

	public String getCarNum() {
		return carNum;
	}

	public void setCarNum(String carNum) {
		this.carNum = carNum;
	}

	public void start() {
		System.out.println("车牌号" + this.carNum + "的" + this.carColor + this.carName + "启动！");
	}

	public void accelerate() {
		System.out.println("车牌号" + this.carNum + "的" + this.carColor + this.carName + "加速！");
	}

	public void stop() {
		System.out.println("车牌号" + this.carNum + "的" + this.carColor + this.carName + "刹车！");
	}

	public Car() {
		super();
	}

	public Car(String carName, String carColor, String carNum) {
		super();
		this.carName = carName;
		this.carColor = carColor;
		this.carNum = carNum;
	}

}
